$OpenBSD: patch-src_simple-scan_vala,v 1.2 2014/04/02 16:12:04 ajacoutot Exp $

No (g)udev under OpenBSD.

--- src/simple-scan.vala.orig	Tue Jan  7 09:54:14 2014
+++ src/simple-scan.vala	Wed Apr  2 18:04:22 2014
@@ -31,7 +31,6 @@ public class SimpleScan : Gtk.Application
 
     private ScanDevice? default_device = null;
     private bool have_devices = false;
-    private GUdev.Client udev_client;
     private UserInterface ui;
     private Scanner scanner;
     private Book book;
@@ -62,10 +61,6 @@ public class SimpleScan : Gtk.Application
         scanner.scan_failed.connect (scanner_failed_cb);
         scanner.scanning_changed.connect (scanner_scanning_changed_cb);
 
-        string[]? subsystems = { "usb", null };
-        udev_client = new GUdev.Client (subsystems);
-        udev_client.uevent.connect (on_uevent);
-
         if (default_device != null)
         {
             List<ScanDevice> device_list = null;
@@ -88,7 +83,6 @@ public class SimpleScan : Gtk.Application
         base.shutdown ();
         book = null;
         ui = null;
-        udev_client = null;
         scanner.free ();
     }
 
@@ -448,11 +442,6 @@ public class SimpleScan : Gtk.Application
         log_file.printf ("[%+.2fs] %s %s\n", log_timer.elapsed (), prefix, message);
         if (debug_enabled)
             stderr.printf ("[%+.2fs] %s %s\n", log_timer.elapsed (), prefix, message);
-    }
-
-    private void on_uevent (GUdev.Client client, string action, GUdev.Device device)
-    {
-        scanner.redetect ();
     }
 
     private static void fix_pdf (string filename) throws Error
